//
//  SportPlanNet.h
//  SportSocial
//
//  Created by yull on 15/2/4.
//  Copyright (c) 2015年 yull. All rights reserved.
//

#import "BaseNet.h"

@interface SportPlanNet : BaseNet

//上传运动计划，跑步除外
+ (AFHTTPRequestOperation *)uploadHistoryWithSportName:(NSString *)sportName
                                             startDate:(NSString *)startDate
                                               endDate:(NSString *)endDate
                                             longitude:(CGFloat)longitude
                                              latitude:(CGFloat)latitude
                                               calorie:(NSUInteger)calorie
                                          successBlock:(httpSuccessBlock)successBlock
                                             failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)uploadHistoryWithSportName:(NSString *)sportName
                                             startDate:(NSString *)startDate
                                               endDate:(NSString *)endDate
                                             longitude:(CGFloat)longitude
                                              latitude:(CGFloat)latitude
                                               calorie:(NSUInteger)calorie
                                              distance:(CGFloat)distance
                                              maxSpeed:(CGFloat)maxSpeed
                                              avgSpeed:(CGFloat)avgSpeed
                                             locations:(NSArray *)locations
                                          successBlock:(httpSuccessBlock)successBlock
                                             failBlock:(httpFailBlock)failBlock;

//获取运动历史
+ (AFHTTPRequestOperation *)getHistoryWithUserId:(UInt64)userId
                                      pageNumber:(NSUInteger)pageNumber
                                        pageSize:(NSUInteger)pageSize
                                    successBlock:(httpSuccessBlock)successBlock
                                       failBlock:(httpFailBlock)failBlock;

//获取运动爱好
+ (AFHTTPRequestOperation *)getHobbyListWithUserId:(UInt64)userId
                                      successBlock:(httpSuccessBlock)successBlock
                                         failBlock:(httpFailBlock)failBlock;

@end
